import request from '@/utils/request'

// 查询邮寄地址列表
export function listMailingaddress(query) {
  return request({
    url: '/mailingaddress/mailingaddress/list',
    method: 'get',
    params: query
  })
}

// 查询邮寄地址详细
export function getMailingaddress(id) {
  return request({
    url: '/mailingaddress/mailingaddress/' + id,
    method: 'get'
  })
}

// 新增邮寄地址
export function addMailingaddress(data) {
  return request({
    url: '/mailingaddress/mailingaddress',
    method: 'post',
    data: data
  })
}

// 修改邮寄地址
export function updateMailingaddress(data) {
  return request({
    url: '/mailingaddress/mailingaddress',
    method: 'put',
    data: data
  })
}

// 删除邮寄地址
export function delMailingaddress(id) {
  return request({
    url: '/mailingaddress/mailingaddress/' + id,
    method: 'delete'
  })
}

// 导出邮寄地址
export function exportMailingaddress(query) {
  return request({
    url: '/mailingaddress/mailingaddress/export',
    method: 'get',
    params: query
  })
}